import request from '@/utils/request'
import {
  PageResultJobInfoVo,
  DeepRequired,
  BasePageQuery,
} from '../../interface'

/**
 * 根据公司Id获取job分页
 * /job/company/{id}
 */
export function getJobCompanyById(params: GetJobCompanyByIdParams) {
  const paramsInput = {
    ...params.basePageQuery,
  }
  return request.get<DeepRequired<PageResultJobInfoVo>>(
    `/job/company/${params.id}`,
    {
      params: paramsInput,
    },
  )
}

interface GetJobCompanyByIdParams {
  id: number
  basePageQuery: BasePageQuery
}
